<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>一朵 - 商品评价</title>
  <!-- swiper-2.7css -->
    <link rel="stylesheet" href="__STATIC__/index/js/swiper/idangerous.swiper.css">
  <!-- swiper-2.7js -->
    <script src="__STATIC__/index/js/swiper/idangerous.swiper.min.js"></script>
  <!-- jquery-3.2.1引用 -->
    <script src="__STATIC__/index/js/global/jquery-3.2.1.min.js"></script>
  <!-- 阿里巴巴矢量图库 -->
    <link rel="stylesheet" href="http://at.alicdn.com/t/font_561814_z72ky81kih08uxr.css">
  <!-- 公共头部 脚部 -->
    <link rel="stylesheet" href="__STATIC__/index/css/global/global.css">
  <!-- 超过1200屏幕 -->
    <link rel="stylesheet" media="screen and (min-width: 1200px)" href="__STATIC__/index/css/evaluate_list/evaluate_list1200.css" />
  <!-- 1080-1200 -->
    <link rel="stylesheet" media="screen  and (min-width: 1080px) and (max-width: 1199px) " href="__STATIC__/index/css/evaluate_list/evaluate_list1080.css"
    />
  <!-- 960-1080 -->
    <link rel="stylesheet" media="screen  and (min-width: 960px) and (max-width: 1079px) " href="__STATIC__/index/css/evaluate_list/evaluate_list960.css"
    />
  <!-- 768-959 -->
    <link rel="stylesheet" media="screen  and (min-width: 768px) and (max-width: 959px) " href="__STATIC__/index/css/evaluate_list/evaluate_list768.css"
    />
  <!-- 568-767 -->
    <link rel="stylesheet" media="screen  and (min-width: 568px) and (max-width: 767px) " href="__STATIC__/index/css/evaluate_list/evaluate_list568.css"
    />
  <!-- 375-567 -->
    <link rel="stylesheet" media="screen  and (min-width: 375px) and (max-width: 567px) " href="__STATIC__/index/css/evaluate_list/evaluate_list375.css"
    />
  <!-- 小于375-->
    <link rel="stylesheet" media="screen  and (max-width: 374px) " href="__STATIC__/index/css/evaluate_list/evaluate_list320.css" />
</head>

<body>

    <div class="M">
        <div class="m-header">
            <div>
                <span onclick="go_back();">
                    <span class="iconfont icon-xiangzuo"></span>
                    返回
                </span>
                <span>商品评价</span>
                <span>
                    {if condition="!empty($realname)"}
                    <a href="{:url('User/index')}" class="my">
                        {$realname}
                    </a>
                    {else /}
                    <a href="{:url('User/index')}">登录</a>
                    <a href="{:url('Login/register')}">注册</a>
                    {/if}
                    <a href="{:url('MyCart/my_cart')}" class="car">
                        <span class="iconfont icon-gouwuche"></span>
                        <span>{$cart_num}</span>
                    </a>
                </span>
            </div>

        </div>
        <div class="m-goods">
            <!-- 循环开始 -->
            {foreach name="order_detail" item="v"}
                <div class="m-goods-content">
                    <span>
                        <img src="{$v.logo}" alt="">
                    </span>
                    <span>
                        <p>{$v.name}</p>
                        <p>{$v.spec_detail}</p>
                    </span>
                    <span>
                        ￥{$v.price} x {$v.goods_num}
                    </span>
                    <span>
                        {if condition="$v.is_comment eq 0"}
                        <a href="{:url('User/pingjia_goods')}?id={$v.id}">评价</a>
                        {else /}
                        <a href="javascript:;">已评价</a>
                        {/if}
                    </span>
                </div>
            {/foreach}
            <!-- 循环结束 -->
        </div>
    </div>
    <!------------------------ PC ------------------------>

    <div class="PC">
        <!-- 公共头部 -->
        {include file="public/p_header" /}
        <!-- 公共头部结束 -->
        <div class="pc-content">
            {include file="public/p_user" /}

            <div class="PC_right">
                {include file="public/p_user_info" /}
                <div class="pc-tihuan">
                    <div class="pc-tihuan-headline">
                        <p>订单评价</p>
                    </div>
                  <!-- 订单循环开始 -->
                    {foreach name="order_detail" item="v"}
                        <div class="pc-xunhuan">
                            <div>
                                <div class="pc-goods">
                                    <div>
                                        <img src="{$v.logo}" alt="">
                                    </div>
                                    <div>
                                        <p>{$v.name}</p>
                                        <p>{$v.spec_detail}</p>
                                    </div>
                                    <div>
                                        <p>
                                            <span>￥{$v.price}</span>
                                            <span>x</span>
                                            <span>{$v.goods_num}</span>
                                        </p>
                                    </div>
                                    {if condition="$v.is_comment eq 0"}
                                    <a href="{:url('User/pingjia_goods')}?id={$v.id}" class="pc-dingdan">立即评价</a>
                                    {else /}
                                    <a href="javascript:;" class="pc-dingdan">已评价</a>
                                    {/if}
                                </div>
                            </div>
                        </div>
                    {/foreach}
                  <!-- 订单循环结束 -->
                </div>
            </div>
        </div>
        <!-- 公共脚部  -->
        {include file="public/p_footer" /}
        <!-- 公共脚部 结束 -->

    </div>


<script>
  /**
   * 返回上一页
   */
  function go_back(){
      window.history.back();  //返回上一页
  }

  /**
   * 完善会员信息
   */
  function edit_member_info(){
      window.location.href = "{:url('User/my_center')}";
  }
</script>
</body>

</html>